package com.cloudservice.ccs.exception;

import com.cloudservice.ccs.util.Constant;
import lombok.Data;
import org.springframework.http.HttpStatus;

@Data
public class BaseException extends RuntimeException {
    private String error = Constant.DEFAULT_ERROR_MESSAGE;

    public BaseException(String message) {
        super(message);
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }

    public BaseException(String error, String message) {
        super(message);
        this.error = error;
    }

    public BaseException(String error, String message, Throwable cause) {
        super(message, cause);
        this.error = error;
    }
}
